import request from '@/utils/request'

// 获取报表类型下拉列表
export function getReportTypes() {
  return request({
    url: '/dispatch/prod/report/types',
    method: 'get'
  })
}

// 获取水厂下拉列表
export function getFactoryList() {
  return request({
    url: '/dispatch/prod/report/factoryList',
    method: 'get'
  })
}

// 获取报表列定义
export function getReportColumns(params) {
  return request({
    url: '/dispatch/prod/report/columns',
    method: 'get',
    params
  })
}

// 查询生产报表数据
export function queryProductionReport(data) {
  return request({
    url: '/dispatch/prod/report/query',
    method: 'post',
    data
  })
}

// 导出生产报表
export function exportProductionReport(data) {
  return request({
    url: '/dispatch/prod/report/export',
    method: 'post',
    data,
    responseType: 'blob'
  })
}